package com.hu.system.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hu.common.annotation.Excel;
import com.hu.common.core.domain.BaseEntity;

/**
 * 库存入库对象 stock_inbound
 *
 * @author hu
 * @date 2025-01-21
 */
public class StockInbound extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 入库ID
     */
    private Long inboundId;

    /**
     * SKU编码
     */
    @Excel(name = "SKU编码")
    private String sku;

    /**
     * 产品名称
     */
    @Excel(name = "产品名称")
    private String productName;

    /**
     * 所属店铺ID
     */
    private Long shopId;

    /**
     * 入库数量
     */
    @Excel(name = "入库数量")
    private Integer inboundQuantity;

    /**
     * 入库类型（PURCHASE:采购入库 RETURN:退货入库）
     */
    @Excel(name = "入库类型")
    private String inboundType;

    /**
     * 来源ID（关联采购记录ID等）
     */
    private Long sourceId;

    /**
     * 入库日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "入库日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date inboundDate;

    /**
     * 删除标志
     */
    private String delFlag;

    /**
     * 店铺名称（非数据库字段）
     */
    private String shopName;

    // Getters and Setters
    public Long getInboundId() {
        return inboundId;
    }

    public void setInboundId(Long inboundId) {
        this.inboundId = inboundId;
    }

    public String getSku() {
        return sku;
    }

    public void setSku(String sku) {
        this.sku = sku;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Integer getInboundQuantity() {
        return inboundQuantity;
    }

    public void setInboundQuantity(Integer inboundQuantity) {
        this.inboundQuantity = inboundQuantity;
    }

    public String getInboundType() {
        return inboundType;
    }

    public void setInboundType(String inboundType) {
        this.inboundType = inboundType;
    }

    public Long getSourceId() {
        return sourceId;
    }

    public void setSourceId(Long sourceId) {
        this.sourceId = sourceId;
    }

    public Date getInboundDate() {
        return inboundDate;
    }

    public void setInboundDate(Date inboundDate) {
        this.inboundDate = inboundDate;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("inboundId", getInboundId())
                .append("sku", getSku())
                .append("productName", getProductName())
                .append("shopId", getShopId())
                .append("inboundQuantity", getInboundQuantity())
                .append("inboundType", getInboundType())
                .append("sourceId", getSourceId())
                .append("inboundDate", getInboundDate())
                .append("remark", getRemark())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}

